<!DOCTYPE html>
<html xmlns:th="http://www.springframework.org/schema/jdbc">
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../static/expand/dtree/font/dtreefont.css">
    <link rel="stylesheet" href="../../../static/expand/dtree/dtree.css">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
    <!--<style>-->
        <!--body{margin: 10px;}-->
        <!--.demo-carousel{height: 200px; line-height: 200px; text-align: center;}-->
    <!--</style>-->
</head>
<body>
    <div >
        <table class="layui-table" id="demo" lay-filter="test"></table>
    </div>
    <div id="editUserHaveEmployee" style="padding: 20px; background-color: #F2F2F2; display:none">
        <form class="layui-form layui-from-pane" action="" style="margin-top:20px"   >

            <div class="layui-form-item">
                <label class="layui-form-label">医院</label>
                <div class="layui-input-inline">
                    <select   id = "hospital_select"  lay-filter="hospital_select">
                        <option value="">请选择</option>
                    </select>
                </div>

                <label class="layui-form-label">部门</label>
                <div class="layui-input-inline">
                    <div>
                        <ul id="DeptDtree" class="dtree" data-id="0"></ul>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">搜索对象:</label>
                <div class="layui-input-inline">
                    <input id="searchEmployee" type="text" name="title"   placeholder="请输入姓名、工号、手机号" autocomplete="off" class="layui-input">
                </div>
                <label class="layui-form-label">是否分配:</label>
                <div class="layui-input-inline">
                    <select   id = "isBindSelect"  lay-filter="isBindSelect">
                        <option value="">全部</option>
                        <option value="0" selected>未绑定</option>
                        <option value="1">已绑定</option>
                    </select>
                </div>
                <div class="layui-inline" >
                    <div class="layui-input-block">
                        <button type="button" id="searchEmployeeBtn" class="layui-btn layui-btn-primary  layui-btn-sm layui-btn-submit " lay-submit="" lay-filter="searchDept">
                            <i class="layui-icon">&#xe615;</i>
                        </button>
                        <button type="reset" id="clearEmployeeBtn" class="layui-btn layui-btn-primary layui-btn-sm">
                            <i class="layui-icon">&#xe669;</i>
                        </button>
                    </div>
                </div>
            </div>
        </form>
        <table class="layui-table" id="employee_table" lay-filter="employee_table"></table>
    </div>
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="assignment_roles">+角色</a>
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="assignment_employee">+员工</a>
</script>

<script type="text/html" id="toolTableTop">
    <div class="layui-btn-container">
        <button  type="button" class="layui-btn layui-btn-primary layui-btn-sm" lay-event="add">
            <i class="layui-icon">&#xe654;</i>
        </button>
        <button  type="button" class="layui-btn layui-btn-primary layui-btn-sm" lay-event="batchDeleted">
            <i class="layui-icon">&#xe640;</i>
        </button>
    </div>
</script>

<script src="../../static/layui/layui.js" charset="utf-8"></script>
<script src="../../../static/js/system/user.js"></script>
<script src="../../../static/expand/main.js" charset="utf-8"></script>



<!--// 详情-->
<div class="layui-form" lay-filter = "dataForm"  id="detail_form" style="display:none;padding: 20px 0 0 0;">

        <div class="layui-form-item">
            <label class="layui-form-label">账号</label>
            <div class="layui-input-inline">
                <input type="text" name="userName"  placeholder="" autocomplete="off" class="layui-input" readonly >
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">注册类型</label>
            <div class="layui-input-block" style="width: 300px;">
                <span style="color:#E47E6E;">退伍军人：</span><input type="radio" name="types" id="type1" value="1" title="">
                <span style="color:#E47E6E;">商家：</span><input type="radio" name="types" id="type0" value="0" title="" ><br/>
                <span style="color:#E47E6E;">志愿者：</span><input type="radio" name="types" id="type2" value="2" title="" >
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-block" style="width: 200px;">
                男：<input type="radio" name="sex" id="sex1" value="1" title="" >
                女：<input type="radio" name="sex" id="sex0" value="0" title="" >
            </div>
        </div>

    <div class="layui-form-item">
        <label class="layui-form-label">身份证号码</label>
        <div class="layui-input-block" style="width: 200px;">
            <input type="text" name="idcard" id="idcard" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-block" style="width: 200px;">
            <input type="text" name="phonenumber" id="phonenumber" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
        </div>
    </div>


        <label class="layui-form-label">附件</label>
        <div class="layui-form-item">
            <div class="layui-inline">
                <div id="demoList1">
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">创建时间</label>
                <div class="layui-input-inline">
                    <input type="text" id="createTime"  name="createTime"  autocomplete="off" class="layui-input" readonly>
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">更新时间</label>
                <div class="layui-input-inline">
                    <input type="text" id="updateTime" name="updateTime" autocomplete="off"    class="layui-input" readonly>
                </div>
            </div>
        </div>
    

        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="checkbox"   checked="" name="status" lay-skin="switch" lay-filter="department_status_form_Switch" lay-text="启用|禁用"  readonly >
            </div>
        </div>

</div>

<!--// 编辑-->
<div class="layui-row" id="edit_form" style="display:none;" >
        <form class="layui-form layui-from-pane" action="" style="margin-top:20px" lay-filter = "dataForm" >

        <div class="layui-form-item" style="display:none;">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <div class="layui-input-block">
                    <input type="hidden" name="id"  autocomplete="off" placeholder="" class="layui-input">
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">账号</label>
                <div class="layui-input-inline">
                    <input type="text" id="userName"  maxlength="16" required  lay-verify="required" autocomplete="off" placeholder="输入用户名" class="layui-input">
                </div>
            </div>

        </div>


            <div class="layui-form-item">
                <label class="layui-form-label">注册类型</label>
                <div class="layui-input-block" style="width: 300px;">
                    <span style="color:#E47E6E;">退伍军人：</span><input type="radio" name="types" id="type11" value="1" title="">
                    <span style="color:#E47E6E;">商家：</span><input type="radio" name="types" id="type00" value="0" title="" ><br/>
                    <span style="color:#E47E6E;">志愿者：</span><input type="radio" name="types" id="type22" value="2" title="" >
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block" style="width: 200px;">
                    男：<input type="radio" name="sex" id="sex11" value="1" title="" >
                    女：<input type="radio" name="sex" id="sex00" value="0" title="" >
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">身份证号码</label>
                <div class="layui-input-block" style="width: 200px;">
                    <input type="text" name="idcard" id="idcard1" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">手机号</label>
                <div class="layui-input-block" style="width: 200px;">
                    <input type="text" name="phonenumber" id="phonenumber1" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
                </div>
            </div>


            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
                <legend>上传附件</legend>
            </fieldset>
            <div class="layui-upload">
                <button type="button" class="layui-btn layui-btn-normal" id="testList">选择多文件</button>
                <div class="layui-upload-list" style="max-width: 1000px;">
                    <table class="layui-table" id="del_table" lay-filter="del_table">
                        <colgroup>
                            <col>
                            <col width="150">
                            <col width="260">
                            <col width="150">
                        </colgroup>
                        <thead>
                        <tr>
                            <th>文件名</th>
                            <th>大小</th>
                            <th>上传进度</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody id="demoList">
                        </tbody>
                    </table>
                </div>
                <button type="button" class="layui-btn" id="testListAction">开始上传</button>
            </div>
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;"></fieldset>



            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">用户状态</label>
                    <div class="layui-input-inline">
                        <input type="checkbox" id = "status" checked="" name="status" lay-skin="switch" lay-filter="user_table_Switch" lay-text="启用|禁用">
                    </div>
                </div>

            </div>

    </form>

</div>

<!--分配角色-->
<div id="add_user_roles" style="padding: 20px; background-color: #F2F2F2; display:none">
        <div class="layui-card-body">
            <div style="margin-bottom:20px ">
                <button id="edit_user_role" type="button" class="layui-btn layui-btn-primary layui-btn-sm">
                    <i class="layui-icon">&#xe642;</i>
                </button>
            </div>


            <div id="user_role_transfer_html" class="demo-transfer"></div>
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
            </fieldset>

        </div>
</div>

</body>
</html>
